this._hasLockScreen = false;
this._isGreeter = false;
this._isActive = false;
+ this._isLocked = false;
this._inUnlockAnimation = false;
this._activationTime = 0;
this._becameActiveId = 0;
this._isActive = true;
if (prevIsActive != this._isActive)
- this.emit('lock-status-changed');
+ this.emit('active-changed');
this.emit('lock-screen-shown');
},
this._activationTime = 0;
this._isActive = false;
this._isLocked = false;
- this.emit('lock-status-changed');
+ this.emit('active-changed');
+ this.emit('locked-changed');
},
activate: function(animate) {
this._resetLockScreen(animate, animate);
- // We used to set isActive and emit lock-status-changed here,
+ // We used to set isActive and emit active-changed here,
// but now we do that from lockScreenShown, which means
// there is a 0.3 seconds window during which the lock
// screen is effectively visible and the screen is locked, but
this._isLocked = true;
this.activate(animate);
+
+ this.emit('locked-changed');
},
});
Signals.addSignalMethods(ScreenShield.prototype);
else
this._locked = false;
- this.emit('lock-status-changed', this._locked);
+ this.emit('active-changed', this._locked);
},
_onSignal: function(proxy, senderName, signalName, params) {
if (signalName == 'ActiveChanged') {
[this._locked] = params.deep_unpack();
- this.emit('lock-status-changed', this._locked);
+ this.emit('active-changed', this._locked);
}
},
this.parent();
this._screenShield = screenShield;
- screenShield.connect('lock-status-changed', Lang.bind(this, function(shield) {
+ screenShield.connect('active-changed', Lang.bind(this, function(shield) {
this._dbusImpl.emit_signal('ActiveChanged', GLib.Variant.new('(b)', [shield.active]));
}));